# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=avarice
_releasever=2.13
_svnver=375
_svndate=20160229
# The latest AVaRICE release doesn't comply on all but history environments.
# Sadly, new release are no longer created.
pkgver=${_releasever}_svn$_svnver
pkgrel=2
pkgdesc="AVaRICE interfaces with GDB and allows debugging of AVR MCUs"
url="http://avarice.sourceforge.net/"
arch="all"
license="GPL-2.0-only"
makedepends="binutils-dev libusb-dev libusb-compat-dev hidapi-dev perl"
depends="gdb-multiarch"
subpackages="$pkgname-doc"
source="http://deb.debian.org/debian/pool/main/a/avarice/avarice_$_releasever+svn$_svnver.orig.tar.xz"
builddir="$srcdir/$pkgname-${_releasever}svn$_svndate"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="8050948ebea9cc4f9d2e90a1eb97962d6335b5a7b750b92ea16e3add4e9163a9fae10cb8c72ddc303126090472aabff21ea6286ac5e33a21800f09886b63000e  avarice_2.13+svn375.orig.tar.xz"
